package jee.boot.module.act.service;

import jee.boot.common.basic.CrudService;
import jee.boot.common.basic.Page;
import jee.boot.entity.activiti.ActActInst;
import jee.boot.entity.system.Filter;
import jee.boot.module.act.dao.ActActInstDao;
import org.springframework.stereotype.Service;

@Service
public class ActActInstService extends CrudService<ActActInstDao, ActActInst> {
    @Override
    public Page<ActActInst> findPage(ActActInst entity) {
        //
        entity.addFilter(new Filter("actType","in","startEvent,userTask,serviceTask,endEvent"));
        return super.findPage(entity);
    }
}
